package cn.bs.ktv.model;

import com.blankj.utilcode.util.GsonUtils;

import java.util.Objects;

public class JsonData extends DefaultData {
    public JsonData(String cmd, Object data) {
        super(cmd, Objects.isNull(data) ? "" : GsonUtils.toJson(data));
    }

    public JsonData(String cmd) {
        super(cmd, "");
    }
}
